<?php

/**
 * Author: Jesse
 * Email : jessedev@163.com
 * Date: 2024/6/15 10:38
 * FileName: OrderServiceClient.php
 * DESC: The Relentless Pursuit of Perfection.
 */

namespace ApiClient\Order\Clients;

use ApiClient\Order\Interfaces\OrderServiceInterface;
use Hyperf\RpcClient\AbstractServiceClient;

/**
 * 订单消费者客户端
 */
class OrderServiceClient extends AbstractServiceClient implements OrderServiceInterface
{
    /**
     * 服务名称
     */
    protected string $serviceName = 'OrderService';

    /**
     * 协议
     *
     * @var string
     */
    protected string $protocol = 'jsonrpc';

    /**
     * @param array $params
     * @return array
     */
    public function getList(array $params = []) :array
    {
        return $this->__request(__FUNCTION__, func_get_args());
    }

    public function testQueue(array $params = []): array
    {
        return $this->__request(__FUNCTION__, func_get_args());
    }
}